﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WantLinks.aspx.cs" Inherits="WantLinks" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>申请友情链接</title>
<link href="../Templates/B2B/css/comm.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="Templates/blue2/skins/default/websen.css" />
<link rel="stylesheet" href="Templates/blue2/skins/default/about.css" />
<script src="js/Page.js" type="text/javascript"></script>
<script src="../Templates/B2B/js/jquery.js" type="text/javascript"></script>
</head>
<body>
<%=_headstr %>
<form id="form123" runat="server">
<div class="cot">
<div id="bnav">您现在的位置：<a href="/">浙商黄页</a> &gt; 申请友情链接</div>
<div id="main">
<div id="main_left">
      <li class="menu">+ <a href="/search/solely.aspx?url=关于我们">关于我们</a></li>
      <li class="menu">+ <a href="/search/solely.aspx?url=广告服务">广告服务</a></li>
      <li class="menu">+ <a href="/WebNews/Trade.aspx">站内新闻</a></li>
      <li class="menu">+ <a href="/search/solely.aspx?url=诚聘英才">诚聘英才</a></li>
      <li class="menu">+ <a href="/search/solely.aspx?url=网站申明">网站申明</a></li>
      <li class="menu">+ <a href="/search/solely.aspx?url=意见投诉">意见投诉</a></li>
      <li class="menu">+ <a href="/search/solely.aspx?url=友情链接">友情链接</a></li>
      <li class="menu">+ <a href="/search/solely.aspx?url=联系我们">联系我们</a></li>
    </div>
  <div id="main_right">
    <p>
	  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
	<td width="11%" height="25" align="right">
		链接类型：	</td>
	<td width="89%" height="25" class="left2">
		<input id="radLinkType" name="LinkType"  checked type="radio" value="1" 
			runat="server" />
		Logo链接 &nbsp; &nbsp;<input id="radLinkType1" name="LinkType" type="radio" value="2"
			 runat="server" />文字链接	</td>
</tr>
                <tr>
                    <td height="25" align="right">
                        网站名称：                    </td>
                    <td height="25" class="left2">
                  <asp:TextBox ID="txtWebName" runat="server" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        网站地址：                    </td>
                    <td height="25" class="left2">
                  <asp:TextBox ID="txtWebURL" runat="server" Width="300px">http://</asp:TextBox>                  </td>
                </tr>
                <tr id="logo" runat="server">
                    <td height="25" align="right">
                        网站Logo：                    </td>
                    <td height="25">
					   <div style="float: left">
                        <asp:HiddenField ID="HiddUserID" runat="server" />
                        <asp:HiddenField ID="ImgUrl1" runat="server" /> <a href="" id="txturldz" target="_blank">
                            <img src="Images/System/wutu1.gif" alt="" name="ImgUrl" border="0" id="ImgUrl"
                                style="width: 98px; height: 98px;" runat="server" /></a>
                        <input id="txtupload" type="button" value="上传" onclick="return rowTest()" class=" marie" />
                        <div id="rowTest" style="display: none">
                            <iframe name="tag" src="Admin/UpFile/Upload.html" style="width: 550px; height: 130px"
                                frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">                            </iframe>
                        </div>
                        <div id="Upload">                        </div>
					  </div>                  </td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        网站简介：                    </td>
                    <td height="25" class="left2">
                        <asp:TextBox ID="txtWebIntro" runat="server" Width="300px" Height="99px" TextMode="MultiLine"></asp:TextBox>                  </td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        站长：                    </td>
                    <td height="25" class="left2">
                        <asp:TextBox ID="txtWebAdmin" runat="server" Width="300px"></asp:TextBox>                  </td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        邮箱：                    </td>
                    <td height="25" class="left2">
                        <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox>                  </td>
                </tr>
                <tr>
                    <td height="35">&nbsp;</td>
                    <td height="35">
                    <asp:Button ID="btnSave" OnClientClick="javascript:return Check()" runat="server" Text="提交申请" OnClick="btnSave_Click" CssClass="i_button" />
                    <asp:Button ID="btnCancel" runat="server" Text="取消申请" OnClick="btnCancel_Click" CssClass="i_button" /></td>
                </tr>
    </table></p> 
  </div>
</div>
</div>
<div id="font" class="f_n main960">
<asp:Label ID="bt" Text="WS_整站底部" runat="server"></asp:Label>
</div>
</form>
<script type="text/javascript" src="js/Common.js"></script>
<script type="text/javascript">
    function  Check()  {
        if ($("txtWebName").value.replace(/\s/g,'')=="") {
            alert("网站名称不能为空！");
            $("txtWebName").focus();
            return false;
         } 
         if($("radLinkType1").checked==false) { 
            if(FileUPload(1)==1){
            alert("上传图片不能为空！")
            return false;  
         }
      }  
       if($("txtEmail").value.replace(/\s/g,'')=="") {
            alert("邮箱不能为空!")
            $("txtEmail").focus();  
            return false;
       }
       else if(!ValidateEmail($("txtEmail").value.replace(/\s/g,''))) {
            alert("邮箱的格式输入错误!");
            $("txtEmail").focus();  
            return false;
       }
     return true;
   }
    </script> 
</body>
</html>
